const mongoose = require('mongoose');

const questionSchema = new mongoose.Schema({
    content: {
        type: String,
        required: true
    },
    answer: {
        type: String,
        required: true
    },
    imageUrl: {
        type: String,
        default: ''  // 图片URL，可选
    },
    hint: {
        type: String,
        default: ''  // 提示文字，可选
    },
    createDate: {
        type: Date,
        default: Date.now
    }
});

module.exports = mongoose.model('Question', questionSchema); 